package com.fowo.api.model.product.inventory;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 库存信息 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class ProductInventoryImportPo {

  /** 物料内码 */
  @ExcelProperty("物料内码")
  @Size(max = 50, message = "物料内码长度不能超过50")
  private String itemIdSku;

  @ExcelIgnore
  @Schema(title = "物料内码")
  private String itemId;

  /** 仓库 */
  @ExcelProperty("仓库")
  @Size(max = 50, message = "仓库长度不能超过50")
  private String stockIdName;

  @ExcelIgnore
  @Schema(title = "仓库")
  private String stockId;

  /** 库存数量 */
  @ExcelProperty("库存数量")
  @DecimalString(message = "库存数量小数格式不正确", label = "库存数量")
  private String stockQty;
}
